package com.qianfeng.teachdemo.bean;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.Table;

import java.io.Serializable;

/**
 * @项目名称：MyWebServlet
 * @类名称：UserInfo
 * @类描述：
 * @创建人：张唯
 * @创建时间：2014-5-21 下午3:17:09
 * @修改人：
 * @修改时间：2014-5-21 下午3:17:09
 * @修改备注：
 */
@Table(name = "USER")
public class UserInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    private Long id;
    @Column(column = "name")
    private String name;
    @Column(column = "sex")
    private String sex;
    @Column(column = "idCard")
    private String idCard;
    @Column(column = "passWord")
    private String passWord;
    @Column(column = "phoneNumber")
    private String phoneNumber;
    @Column(column = "isdelete")
    private String isdelete;// 1表示删除,0未删除
    @Column(column = "otherName")
    private String otherName;
    @Column(column = "email")
    private String email;
    @Column(column = "state")
    private int state;
    @Column(column = "errorMsg")
    private String errorMsg;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(String isdelete) {
        this.isdelete = isdelete;
    }

    public String getOtherName() {
        return otherName;
    }

    public void setOtherName(String otherName) {
        this.otherName = otherName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    @Override
    public String toString() {
        return "UserInfo [id=" + id + ", name=" + name + ", sex=" + sex + ", idCard=" + idCard + ", passWord=" + passWord + ", phoneNumber=" + phoneNumber + ", isdelete="
                + isdelete + ", otherName=" + otherName + ", email=" + email + ", state=" + state + ", errorMsg=" + errorMsg + "]";
    }

    public UserInfo() {
        super();
    }

    public UserInfo(String name, String passWord) {
        super();
        this.name = name;
        this.passWord = passWord;
    }

    public UserInfo(String name, String passWord, String email) {
        super();
        this.name = name;
        this.passWord = passWord;
        this.email = email;
    }
}
